<?php

namespace Lims\MainBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class MainController extends Controller
{

    public function indexAction()
    {
        
        if(!$this->container->get('security.context')->isGranted('IS_AUTHENTICATED_FULLY') ){
            header("Location: /logout/");
            exit;
        }
//        
//        if (!$this->container->has('security.authorization_checker')) {
//            echo 2;die;
//        }
//        echo 3;
//        die;
//        var_dump($this->container->get('security.context')->getToken()->getUser()->getId());
//        die;
        return $this->render('LimsMainBundle:Main:index.html.twig', array());
    }
}
